import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MainComponent } from './main/main.component';
import { CategoryComponent } from './category/category.component';
import { ManagerIndexComponent } from './manager/manager-index/manager-index.component';
import {ManagerProductComponent} from "./manager/manager-product/manager-product.component";
import {ManagerUserComponent} from "./manager/manager-user/manager-user.component";
import {ManagerOrderComponent} from "./manager/manager-order/manager-order.component";

const routes: Routes = [
    {
        path: '',
        component: MainComponent,
    },
    {
        path: 'category',
        component: CategoryComponent,
    },
    {
        path: 'manager/index',
        component: ManagerIndexComponent
    },
    {
        path: 'manager/product',
        component: ManagerProductComponent
    },
    {
        path: 'manager/user',
        component: ManagerUserComponent
    },
    {
        path: 'manager/order',
        component: ManagerOrderComponent
    }
];

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule],
})
export class AppRoutingModule {}
